package cn.sportvip.repository.jpa.sport;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import cn.sportvip.Sport.HIS;
import cn.sportvip.entity.sport.CourseHistory;

public interface CourseHistoryRepository extends CrudRepository<CourseHistory, Integer> {

	Page<CourseHistory> findByUserIdAndType(Integer userId, HIS type,
			Pageable pageable);

	CourseHistory findByUserIdAndTargetIdAndType(Integer userId,
			Integer targetId, HIS type);
}
